//
//  TopCollectionViewCell.m
//  礼物说分类
//
//  Created by mafeng on 16/8/2.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "TopCollectionViewCell.h"

@implementation TopCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 110, 80)];
        //_imageView.backgroundColor = [UIColor yellowColor];
        _imageView.image = [UIImage imageNamed:@"lan"];
        [self addSubview:_imageView];
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 0, 50, 30)];
        //_titleLabel.backgroundColor = [UIColor cyanColor];
        _titleLabel.text = @"花样年华";
        [self addSubview:_titleLabel];
        
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 30, 50, 30)];
        //_timeLabel.backgroundColor = [UIColor blueColor];
        _titleLabel.text = @"2003年";
        [self addSubview:_timeLabel];
        
        _authorLabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 60, 50, 30)];
        //_authorLabel.backgroundColor = [UIColor blueColor];
        _authorLabel.text = @"mafeng";
        [self addSubview:_authorLabel];
    }
    return self;
}
@end
